<?php

spl_autoload_register(function($class) {
    //$name = substr($class, strlen('Louis'));
    $name = trim(preg_replace('/Louis/', 'System', $class), '/');
    $path = __DIR__ . DIRECTORY_SEPARATOR . strtr($name, '\\', DIRECTORY_SEPARATOR) . '.php';
    require $path;
});
